go/types.Checker.sprintf (method)

32 uses

	go/types (current package)
		assignments.go#L51: 			msg := check.sprintf("cannot use %s as %s value in %s", x, target, context)
		assignments.go#L283: 			s = check.sprintf("...%s", t.(*Slice).elem)
		assignments.go#L286: 			s = check.sprintf("%s", t)
		builtins.go#L95: 					cause = check.sprintf("%s has core type %s", x, u)
		builtins.go#L97: 					cause = check.sprintf("%s has no core type", x)
		builtins.go#L100: 				cause = check.sprintf("have %s", x)
		call.go#L412: 		context := check.sprintf("argument to %s", call.Fun)
		call.go#L567: 			why = check.sprintf("type %s has no field or method %s", x.typ, sel)
		conversions.go#L53: 				cause = check.sprintf("%s does not contain specific types", T)
		conversions.go#L60: 				cause = check.sprintf("cannot convert %s to %s (in %s)", x, u, T)
		conversions.go#L211: 			msg := check.sprintf(format, args...)
		errors.go#L67: func (check *Checker) sprintf(format string, args ...any) string {
		errors.go#L210: 	msg := check.sprintf(format, args...)
		errors.go#L219: 	check.error(at, code, check.sprintf(format, args...))
		expr.go#L757: 		cause = check.sprintf("mismatched types %s and %s", x.typ, y.typ)
		expr.go#L836: 			cause = check.sprintf("type parameter %s is not comparable with %s", errOp.typ, op)
		expr.go#L838: 			cause = check.sprintf("operator %s not defined on %s", op, check.kindString(errOp.typ)) // catch-all
		expr.go#L863: 		cause = check.sprintf(format, args...)
		expr.go#L883: 			return check.sprintf("type parameter %s", typ)
		expr.go#L891: 		return check.sprintf("%s", typ) // catch-all
		instantiate.go#L167: 		return errors.New(check.sprintf(format, args...))
		instantiate.go#L174: 			cause = check.sprintf("type %s is pointer to interface, not interface", T)
		instantiate.go#L176: 			cause = check.sprintf("%s is not an interface", T)
		lookup.go#L384: 			return check.sprintf("(missing %s)\n\t\thave %s\n\t\twant %s",
		lookup.go#L389: 			return check.sprintf("(%s has pointer receiver)", mname)
		lookup.go#L392: 		return check.sprintf("(wrong type for %s)\n\t\thave %s\n\t\twant %s",
		lookup.go#L404: 	return check.sprintf("(missing %s)", mname)
		lookup.go#L416: 		return check.sprintf("type %s is pointer to type parameter, not type parameter", T)
		lookup.go#L418: 	return check.sprintf("type %s is pointer to interface, not interface", T)
		operand.go#L319: 			msg := check.sprintf(format, args...)
		stmt.go#L837: 				cause = check.sprintf("%s has no core type", x.typ)
		typexpr.go#L200: 			*reason = check.sprintf("%s is not a generic type", typ)